package com.cdut;



import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动引导程序
 */
@EnableCaching
//@EnableRedisHttpSession//启动session
@SpringBootApplication
@EnableScheduling
public class BigDataApplication extends SpringBootServletInitializer{
    public static void main(String[] args) {

        SpringApplication.run(BigDataApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(BigDataApplication.class);
    }




}
